/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bsc.war.factory;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author Enzo
 */
public class Factory {
    
    public static final ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext( "/WEB-INF/applicationContext.xml");
    
    public static Object getBean(String bean){
        return appContext.getBean(bean);
    }
            
}
